import request from '@/utils/request'

// 新增采购订单明细
export function addPurchaseOrderDetails(data) {
  return request({
    url: '/mes/pro/po/line/add',
    method: 'post',
    data
  })
}

// 编辑采购订单明细
export function putPurchaseOrderDetails(data) {
  return request({
    url: '/mes/pro/po/line/edit',
    method: 'put',
    data
  })
}

// 删除采购订单明细
export function delPurchaseOrderDetails(id) {
  return request({
    url: '/mes/pro/po/line/del/' + id,
    method: 'delete',
  })
}